﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using WWDemon.Model;
using WWDemon.WebServer;

namespace WWDemon.Web.Controllers
{
    public class HomeController : Controller
    {
        [HttpGet]
        public ActionResult CaiJi(string order,string ipProt)
        {
            GetOrderInfo getOrder = new GetOrderInfo();
            getOrder.OrderId = order;
            getOrder.IpProt = ipProt;

            AccountServer.Instance.SendData(CommondKey.GetOrderInfo, getOrder, getOrder.IpProt);

            return Json("test",JsonRequestBehavior.AllowGet);
        }

        public ActionResult Index()
        {
            return View();
        }

        public ActionResult About()
        {
            ViewBag.Message = "Your application description page.";

            return View();
        }

        public ActionResult Contact()
        {
            ViewBag.Message = "Your contact page.";

            return View();
        }
    }
}